﻿package com.firewolf.command.simplecommand;
/**
 * 开灯命令，是一个具体的命令，扮演ConcereteCommand
 * @author Administrator
 *
 */
public class LightOnCommand implements Command{//是一个命令，实现Command接口
	private Light light;
	public LightOnCommand(Light light) {
		this.light = light;
	}
	@Override
	public void execute() { //调用接收者light的相应操作on()
		light.on();
	}
}
